<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/common/header.jsp"%>

<div id="resultBox"></div>

	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="../office/common/table/tablenameview.html?tableName=m_content&jspPageName=base/content_edit" target="dialog" rel="dlg_page10" mask="true" title="添加平台用户信息"><span>添加</span></a><br /><br /></li>
			<li class="line">line</li>
			<li><a class="edit" onclick="return open1();" title="添加平台用户信息"><span>修改</span></a></li>
			<li class="line">line</li>
			<li><a class="delete" href="../office/common/table/update.html?tableName=m_content&tableAction=delete&jspPageName=base/content_edit&table.id.name=contentID&contentID={CONTENTID}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
		</ul>
	</div>
	
<div style=" float:left; display:block; margin:10px; overflow:auto; width:800px; height:300px; border:solid 1px #CCC; line-height:21px; background:#FFF;">
<ul class="tree treeFolder expand">
	<li><a>框架面板</a>
		<ul>
			<li id="123"><a tname="name" onclick="treeClick(1);" ondblclick="alert('ok');" tvalue="value1" >我的主页</a></li>
			<li id="abc"><a tname="name" onclick="treeClick(2);" target="contentID" rel="123" tvalue="value2">页面一</a></li>
			<li><a tname="name" tvalue="value4">页面二</a></li>
			<li><a tname="name" tvalue="value5">页面三</a></li>
		</ul>
	</li>

</ul>
</div>


<script type="text/javascript">
var treeid = null;
function treeClick(id){
	treeid = id;
}

function treeDbClick(id){
	treeid = id;
}

function open1(){
	//alert("ok");
	//alert($("<li id='123'>"));
	var a = $("li[id='123']");
	//alert(a);
	//$("<li id='123'>").append("aa");
	a.append("<div class=\"\"><div class=\"indent\"></div><div class=\"node\"></div><div class=\"file\"></div><a tvalue=\"value1\" ondblclick=\"alert('ok');\" onclick=\"treeClick(1);\" tname=\"name\">我的主页</a></div>");
	//a.append("<li><a tname=\"name\" tvalue=\"value5\">页面三</a></li>");
}

function kkk(){
	var json = arguments[0], result="";
	alert(json);

	$(json.items).each(function(i){
		result += "<p>name:"+this.name + " value:"+this.value+" text: "+this.text+"</p>";
	});
	$("#resultBox").html(result);
	
}
</script>
